HaloPesa Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.sat.tausi.africa/v2/halotel/1d_analysis'
-F fullname=Hussein \
-F 'file=@HaloPesa_4435535_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'
Response Sample
- Status OK Response
200 OK
{
"initial_info": {
"owners_number": "255613XXXXXXX",
"start_date": "2023-12-17T19:50:19",
"end_date": "2024-03-11T00:01:54",
"total_days": 85,
"total_active_days": 40
},
"profile": {
"wallet_balance": 3610.0,
"turnover": 6367402.0,
"number_of_transactions": 137
},
"cashin_flow": {
"total_cashin": 3183756.0,
"cashin_flow_turnover_percentage": 50.0,
"cashin_transactions": 39,
"cashin_trans_total_trans_perc": 28.47
},
"cashout_flow": {
"total_cash": 3183646.0,
"cashout_flow_turnover_percentage": 50.0,
"cashout_transactions": 98,
"cashout_trans_to_total_trans_percentage": 71.53
},
"b2w": {
"total_amount_transferred_from_bank_to_wallet": 504000.0,
"maximum_amount_transferred_from_bank_to_wallet": 120000.0,
"number_of_times_trasnferred_from_bank_to_wallet": 13,
"last_time_transferred_from_bank_to_wallet": "2024-01-26T23:09:00",
"average_amount_transferred_from_bank_to_wallet": 38769.23
},
"w2b": {
"total_amount_transferred_from_wallet_to_bank": 982000.0,
"maximum_amount_transferred_from_wallet_to_bank": 444000.0,
"number_of_times_trasnferred_from_wallet_to_bank": 5,
"last_time_transferred_from_wallet_to_bank": "2024-03-10T09:08:05",
"average_amount_transferred_from_wallet_to_bank": 196400.0
},
"luku_info": {
"total_amount_used_to_buy_luku": 34500.0,
"maximum_amount_used_to_buy_luku": 20000.0,
"number_of_times_bought_luku": 4,
"average_amount_bought_luku": 8625.0,
"last_time_bought_luku": "2024-01-24T12:38:33"
},
"agent_deposit": {
"total_amount_deposited_via_agent": 110000.0,
"maximum_amount_deposited_via_agent": 110000.0,
"number_of_times_deposited_via_agent": 1,
"average_amount_deposited_via_agent": 110000.0,
"last_time_deposited_via_agent": "2024-01-17T12:28:54",
"last_amount_deposited_via_agent": 110000.0,
"nunique_agents_deposited": 1
},
"agent_withdraw": {
"total_amount_withdrawn_via_agent": 635918.0,
"maximum_amount_withdrawn_via_agent": 336338.0,
"number_of_times_withdrawn_via_agent": 11,
"average_amount_withdrawn": 57810.73,
"last_time_withdrawn_via_agent": "2024-01-23T15:08:05",
"last_amount_withdrawn": 34151.0
},
"merchant_payment": {
"total_amount_paid": 246000.0,
"max_amount_paid": 66000.0,
"number_of_times_paid": 5,
"average_amount_paid": 49200.0,
"last_day_paid": "2024-01-21T21:00:00",
"last_amount_paid": 66000.0
},
"p2p_sent_info": {
"total_amount_sent_to_peer": 1145728.0,
"maximum_amount_sent_to_peer": 104350.0,
"number_of_times_sent_to_peer": 47,
"last_time_sent_to_peer": "2024-03-11T00:01:54",
"average_amount_ms_p2p": 24377.19,
"last_amount_ms_p2p": 101350.0
},
"p2p_received_info": {
"total_amount_received_from_peer": 2561006.0,
"maximum_amount_received_from_peer": 800000.0,
"number_of_times_received_from_peer": 24,
"average_amount_received": 106708.58,
"last_time_received_from_peer": "2024-03-09T13:33:04",
"last_amount_received_p2p": 0.0
},
"package_topup": {
"total_amount_paid_package": 134500.0,
"max_amount_paid_package": 10000.0,
"number_of_times_paid_package": 25,
"average_amount_paid_package": 5380.0,
"last_day_paid_package": "2024-03-10T00:12:17",
"last_amount_paid_package": 5000.0
}
}
- Bad Request Response
400 Bad Request
message: "<The specific error message>"
- Unprocessable Entity
422 Unprocessable file entity
message: "Unprocessable File Entity"
- Rate Limit Error
429 Rate Limited Error
message: "Rate limited resource",
nexttime:"19876543"
- Internal Server Error
500 Internal Server Error
message: "An Internal server error",
Rate Limiting!
Rate Limited Resource Continous Access will lead to blocking an account.